package io.gitee.hechenl.fastiotreport.enums;

import lombok.Getter;

@Getter
public enum EnergyCalculatePattern {

    energy1("a","单个点","C0","^\\d+$"),
    energy2("a+b","多个点累加","C0","^\\d+(\\+\\d+)+$"),
    energy3("a-b","两个点相减","C0-C1","^\\d+-\\d+$"),
    energy4("(a+b)-(c+d)","多点相加减去多点相加", "C0-C1","^\\(\\d+(\\+\\d+)+\\)-\\(\\d+(\\+\\d+)+\\)$"),
    energy5("(a+b)-c","多点相加减去一个点","C0-C1","^\\(\\d+(\\+\\d+)+\\)-\\d+$"),
    energy6("a-(b+c)","单点减去多个点相加", "C0-C1","^\\d+-\\(\\d+(\\+\\d+)+\\)$");

    private final String examples;
    private final String desc;
    private final String calExpr;
    private final String pattern;

    EnergyCalculatePattern(String examples, String desc, String calExpr, String pattern) {
        this.examples = examples;
        this.desc = desc;
        this.calExpr = calExpr;
        this.pattern = pattern;
    }
}
